package com.wx.fresh.business.controller;


import com.wx.fresh.business.vo.storeVo.BStoreInVo;
import com.wx.fresh.business.vo.businessVo.BusinessStoresVo;
import com.wx.fresh.common.util.CommonResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Api(tags = "门店管理")
@RestController
@RequestMapping("/store")
public class StoresController {


    @ApiOperation(value = "门店查询")
    @GetMapping("findStore")
    public CommonResult findStore(BStoreInVo bStoreInVo) {
        return null;
    }

    @ApiOperation(value = "创建门店")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "name", value = "门店名称", required = true, paramType = "form"),
            @ApiImplicitParam(name = "address", value = "门店地址", required = true, paramType = "form"),
            @ApiImplicitParam(name = "latitude", value = "经度", required = true, paramType = "form"),
            @ApiImplicitParam(name = "longitude", value = "纬度", required = true, paramType = "form"),
            @ApiImplicitParam(name = "shopowner", value = "店长", required = true, paramType = "form"),
            @ApiImplicitParam(name = "phone", value = "联系方式", required = true, paramType = "form"),
            @ApiImplicitParam(name = "state", value = "店铺状态", required = true, paramType = "form"),
    })
    @PostMapping("addStore")
    public CommonResult addStore(BusinessStoresVo businessVo) {
        return null;
    }

    @ApiOperation(value = "店铺信息编辑")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "name", value = "门店名称", required = true, paramType = "form"),
            @ApiImplicitParam(name = "address", value = "门店地址", required = true, paramType = "form"),
            @ApiImplicitParam(name = "latitude", value = "经度", required = true, paramType = "form"),
            @ApiImplicitParam(name = "longitude", value = "纬度", required = true, paramType = "form"),
            @ApiImplicitParam(name = "shopowner", value = "店长", required = true, paramType = "form"),
            @ApiImplicitParam(name = "phone", value = "联系方式", required = true, paramType = "form"),
            @ApiImplicitParam(name = "state", value = "店铺状态", required = true, paramType = "form"),
    })
    @PostMapping("editStoreInformation")
    public CommonResult editStoreInformation(BusinessStoresVo businessVo) {
        return null;
    }
}
